import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import router from './router/index'
import store from './store/index'
import App from './App.vue'
import * as ElIcon from '@element-plus/icons-vue'


// 创建vue实例
const app = createApp(App);

app.use(router);
app.use(store);
app.use(ElementPlus)
Object.keys(ElIcon).forEach((key) => {
    app.component(key, ElIcon[key])
  })

// 挂载实例
app.mount('#app');